﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="M_NewsClass.aspx.cs" Inherits="Web_HengliSeed.Sys_Manage.M_NewsClass" EnableViewState="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../Style/Manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JavaScript/Jquery.js"></script>
    <script type="text/javascript" src="../JavaScript/Admin.js"></script>
</head>
<body>    
<form id="form1" runat="server">
    <div class="div_All">
    <div class="Body_Title">资讯信息管理 》》资讯分类信息</div>
    <div class="Body_Search">
        <input id="BtnNewsClassAdd" type="button" value="添加分类信息"   onclick="javascript:location.href='M_EditNewsClass.aspx?lan=<%=Request["lan"] %>'"/>
        &nbsp;&nbsp;&nbsp;&nbsp;
        
            <%
                if (!string.IsNullOrEmpty(Request["lan"]))
                {
                    if (Request["lan"] == "en")
                    {
                        Response.Write("<input type=\"button\" value=\"中文版\" onclick='javascript:location.href=\"M_NewsClass.aspx?lan=cn\"' />");
                    }
                    else
                    {
                        Response.Write("<input type=\"button\" value=\"英文版\" onclick='javascript:location.href=\"M_NewsClass.aspx?lan=en\"' />"); 
                    }
                }
                else
                {
                    Response.Write("<input type=\"button\" value=\"英文版\" onclick='javascript:location.href=\"M_NewsClass.aspx?lan=en\"' />");
                }
                 %>
            
    </div>
    <asp:Repeater ID="RpProduct" runat="server" onitemcommand="RpProduct_ItemCommand">
        <HeaderTemplate>
            <table cellpadding="2" cellspacing="1" class="Admin_Table">
                <thead>
                    <tr class="Admin_Table_Title">
                        <th style="width:5%;">操作</th>
                        <th style="width:8%;">类别名称</th>
                        <th style="width:40%;">关键字</th>
                        <th style="width:45%;">简介</th>
                    </tr>
                </thead><tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><a href='M_EditNewsClass.aspx?CID=<%#Eval("T_NewsClassID")%>&lan=<%=Request["lan"] %>'><img src="../Images/MillMes_ICO.gif" alt="修改信息..." /></a>
                    <asp:ImageButton class="DelClass" ID="IBDelClass" runat="server" CommandArgument='<%#Eval("T_NewsClassID")%>' CommandName="Del" ImageUrl="~/Images/Delete.gif"  ToolTip="删除该类..."/>
                </td>
                <td><%#Eval("T_NewsClassName")%></td>
                <td class="TIP"  myTitle="" title='<%#Eval("T_NewsClassKey")%>'><%# Web_HengliSeed.ClassFile.Function.CheckStr(Eval("T_NewsClassKey"), 30)%></td>
                <td class="TIP"  myTitle="" title='<%#Eval("T_NewsClassDes")%>'><%#  Web_HengliSeed.ClassFile.Function.CheckStr(Eval("T_NewsClassDes"), 34)%></td>
            </tr>
        </ItemTemplate>
        <FooterTemplate></tbody></table></FooterTemplate>
    </asp:Repeater>
    </div>
    </form>
</body>
</html>
